package org.example.controller;

import org.example.service.LotteryService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@CrossOrigin
public class LotteryController {
    @Resource
    LotteryService lotteryService;
    @PostMapping("/d/{n}")
    public List<String> d(@PathVariable String n){
        return lotteryService.d(n);
    }

    @PostMapping("/s/{n}")
    public List<String> s(@PathVariable String n){
        return lotteryService.s(n);
    }
}
